Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improving upsert_users django command #193

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

edulix
Copy link
Contributor

@edulix edulix commented Apr 7, 2022

Adding support for some new options:

  • --event-id: Allow adding not only admin users but also voters to a specific auth-event.
  • --metadata-lookup: By default, voters are found looking up the username, but you can apply this to use some userdata.metadata field instead.
  • --update-only: Only will apply user updates, never create a new user, failing if any user is not found.
  • --create-only: Only will create previously inexistant users, failing if an user is found.
  • --dry-run: If enabled, the script will apply no change, listing the users to be updated/created instead.
  • Generates a random username for new users if no username is provided.
  • Setting the email and permissions of users is now optional.
  • It allows setting some user metadata and children_event_id_list.

@edulix edulix merged commit c1c1aaf into master Apr 7, 2022
@edulix edulix deleted the upsert-users-improvement-master branch April 7, 2022 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant